import type { Goods } from "./Goods"
import type { Brands } from "./Brands"

export interface Category {
    id: string,
    name: string,
    picture: string,
    children: Category[] | undefined,
    goods: Goods[] | undefined,
    saleInfo: string,
    saleProperties: SaleProperty[] | undefined,
    brands: Brands[];
    //添加属性
    layer: number;
    parent: Category | undefined;

}
interface SaleProperty {
    id: string;
    name: string;
    properties: Omit<SaleProperty, "properties">[];
}